<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
</head>
<body>
	<div class="login_banner">
		<form role="form" class="form-horizontal" method="post" action="dispose" enctype="multipart/form-data">
			
			<div class="form-group text-center">
   	     		<label class="control-label">商品图片修改</label>
   	     	</div>

   	     	<div class="form-group text-center">
   	     		<input type="hidden" name="tid" value="{$Think.get.tid}" class="form-control" />
   	     	</div>

   	     	<div class="form-group">
   	     		<label class="control-label col-sm-4">商品:</label>
   	     		<div class="col-sm-4 ">
                    <select type="int" name="product_id"  class="form-control">
                        <option value="{$article.product_id}">
                            {$article.name}
                        </option>         
                    </select>
   	     		</div>
   	    	</div>

			<div class="form-group">
   	     		<label class="control-label col-sm-4">图片</label>
                <div class="col-sm-4 ">
                    <input type="file" name="photo[]" />
                    <h4>
                    	修改前图片
                    	<img src="__PUBLIC__/images/product/{$article.picture_url}" width="100px" height="100px">
                    </h4>
                </div>
   	     	</div>

	   	    <div class="form-group">
	   	        <div class="col-sm-4 control-label">
	   	     	    <input type="reset" name="button" value="重置" />
	   	     	</div>
	   	     	<div class="col-sm-4 control-label">
	   	     		<button >提交</button>
	   	     	</div>
	   	    </div>
	   	    
		</form>
	</div>
</body>
<!-- <script type="text/javascript">
    // 点击删除原图片（未成功）
    var $filename = "__PUBLIC__/images/product/{$article.picture_url}";
    $(document).ready(function(){
        $('button').focus(function(){
            $('img').unlink($filename);
        })
    });
</script> -->
</html>